package com.dux.springnative.springboot30;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ImportRuntimeHints;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@ImportRuntimeHints({MyRuntimeHints.class})
@Controller
@SpringBootApplication
public class Springboot30Application {

	public static void main(String[] args) {
		SpringApplication.run(Springboot30Application.class, args);
	}

	@GetMapping("hello")
	@ResponseBody
	private String hello(){
		return "hello world";
	}

}
